<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>首页</title>
    <style> 
        h2{
        border-bottom:5px solid pink;
        padding-bottom:10px;
        text-align:center;
        width:100%;
        } 
    </style>
</head>
<body align="center"
	style="background-image: url(images/a.gif); background-size: 100%;">
	<script type="text/javascript">
	function back(){
    	alert('退出成功');
    	location.href='index.jsp';
    	}
    </script>
   
		<div class="loginbox" >
			<%
        Object message = request.getAttribute("message");
        if (message != null && !"".equals(message)) {
    %>
			<script type="text/javascript">
              alert("<%=request.getAttribute("message")%>");
              var  asd=request.getAttribute("username");         
    </script>
			<%
        }
    %>
    <div
   style=" width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -50px 0 0 -50px;">

</div>
<div id="container" style="width:100%;">



<div align="center">

		<div
			style="border: 5px solid black; width: 300px; height: 270px; border-radius: 35px; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);">
			<h1>管理员界面</h1>

			<div>

				<a style="text-decoration: none;"
href="Servlet?method=allstu&user=${prename}">全部学生</a>
							

			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>

				<a style="text-decoration: none;" href="Servlet?method=allclass">全部课程</a>
			</div>
		
			<HR align=center width=150px color=gray SIZE=1>
			<div>
					<a style="text-decoration: none;" href="addstu.jsp">添加学生</a>

			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>
			
			<a style="text-decoration: none;" href="addclass2.jsp">添加课程</a>
			<HR align=center width=150px color=gray SIZE=1>
				<button id="btn" onclick="back()">退出系统</button>
			</div>
		</div>
		
	</div>



</div>
</body>
</html>
